package cn.springcloud.fix.demo.controller;

import cn.springcloud.fix.common.core.base.R;
import cn.springcloud.fix.demo.api.request.CreateCategoryRequest;
import cn.springcloud.fix.demo.api.request.GetAllTreeRequest;
import cn.springcloud.fix.demo.api.response.CreateCategoryResponse;
import cn.springcloud.fix.demo.api.response.GetAllTreeResponse;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/category")
public class CategoryController {

    /**
     * 获取分类列表
     */
    @PostMapping("/getAllTree")
    public R<GetAllTreeResponse> initNickRoles(@Validated @RequestBody GetAllTreeRequest request) {
        return null;
    }

    /**
     * 单个分类创建
     */
    @PostMapping("/create")
    public R<CreateCategoryResponse> createCategory(@Validated @RequestBody CreateCategoryRequest request) {
        return null;
    }
}
